<div th:fragment="chatSetLeftHTML">

	<form class="layui-form layui-form-pane left-form-set set-form" action="">

		<div class="layui-form-item">
			<label class="layui-form-label"  title="默认角色名">默认角色名</label>
			<div class="layui-input-block">
				<input type="text" name="modelDefaultNameSet" id="modelDefaultNameSet" maxlength="5" lay-verify="required" autocomplete="off" class="layui-input input-buttom" value="逸知道AI" >
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label" title="自定义角色名">自定义角色名<i class="layui-icon layui-icon-question tipIron" id="isOpenUserRole"></i></label>
			<div class="layui-input-block" id="modelRoleIsOpenSetView">
				<input type="checkbox" name="modelRoleIsOpenSet" id="modelRoleIsOpenSet" lay-skin="switch" lay-filter="switchModelRoleIsOpenSet" title="开|关">
			</div>
		</div>

		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">AI人设
				<i class="layui-icon layui-icon-question tipIron" id="aiSystemTip"></i>
			</label>
			<div class="layui-input-block">
				<textarea placeholder="请输入内容" id="aiSystemSet" class="layui-textarea" maxlength="500" style="min-height:100px;"></textarea>
			</div>
		</div>

		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">开场白设置
				<i class="layui-icon layui-icon-question tipIron" id="startTxt"></i>
				<button type="button" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" style="float: right;" onclick="sendOneStartTxt();">发送一条试试</button>
			</label>
			<div class="layui-input-block">
				<textarea placeholder="请输入内容" id="prologueSet" class="layui-textarea" maxlength="100" style="min-height: 70px;"></textarea>
			</div>
		</div>

		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">模型无法回答时的提示语
				<i class="layui-icon layui-icon-question tipIron" id="sorryTxtTip"></i>
				<button type="button" class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" style="float: right;" onclick="sendOneSorryTxt();">发送一条试试</button>
			</label>
			<div class="layui-input-block">
				<textarea placeholder="请输入内容" id="sorryTxtSet" class="layui-textarea" maxlength="100" style="min-height: 70px;"></textarea>
			</div>
		</div>

		<div class="layui-collapse collapse-set">
			<div class="layui-colla-item">
				<div class="layui-colla-title">AI模型<i class="layui-icon layui-icon-question tipIron" id="chooseAiModel"></i></div>
				<div class="layui-colla-content layui-show">
					<div style="margin-bottom: 10px;" id="chooseModelBtn">
						<!--
						<button type="button" class="layui-btn layui-btn-xs" onclick="delChooseModel(id)">模型1 <i class="layui-icon layui-icon-close layui-font-12"></i></button>
						-->
					</div>
					<button type="button" class="layui-btn layui-btn-sm layui-btn-primary choose-btn" onclick="setChooseAiModel()">
						<i class="layui-icon layui-icon-link layui-font-12"></i> 配置AI大模型
					</button>
				</div>
			</div>
		</div>

		<div class="layui-collapse collapse-set">
			<div class="layui-colla-item">
				<div class="layui-colla-title">知识库配置<i class="layui-icon layui-icon-question tipIron" id="chooseLedgeSet"></i></div>
				<div class="layui-colla-content layui-show">
					<div style="margin-bottom: 10px;" id="chooseLedgeBtn">
						<!--
						<button type="button" class="layui-btn layui-btn-xs" onclick="delChooseLedge(id)">知识库1 <i class="layui-icon layui-icon-close layui-font-12"></i></button>
						-->
					</div>
					<button type="button" class="layui-btn layui-btn-sm layui-btn-primary choose-btn" onclick="setChooseKnowledgeBase()">
						<i class="layui-icon layui-icon-link layui-font-12"></i> 关联知识库
					</button>
					<div class="btn-view-search">
						<div class="layui-row">
							<div class="layui-col-xs4">
								<span style="text-align: right;">返回数量<i class="layui-icon layui-icon-question tipIron" id="backNum"></i>：</span>
							</div>
							<div class="layui-col-xs8">
								<div id="ID-slider-demo-step-1" class="slider-set"></div>
							</div>
						</div>
						<div style="margin-top: 15px;" class="layui-row">
							<div class="layui-col-xs4">
								<span style="text-align: right;">置信度<i class="layui-icon layui-icon-question tipIron" id="setNum"></i>：</span>
							</div>
							<div class="layui-col-xs8"><div id="ID-slider-demo-step-2" class="slider-set"></div></div>
						</div>
					</div>
				</div>
			</div>
		</div>


		<div class="layui-collapse collapse-set">
			<div class="layui-colla-item">
				<div class="layui-colla-title">提示词<i class="layui-icon layui-icon-question tipIron" id="promptTip"></i></div>
				<div class="layui-colla-content layui-show">
					<div class="layui-tab layui-tab-brief">
						<ul class="layui-tab-title">
							<li class="layui-this">无知识库问答<i class="layui-icon layui-icon-question tipIron" id="promptTipNoLedge"></i></li>
							<li>知识库问答<i class="layui-icon layui-icon-question tipIron" id="promptTipWithLedge"></i></li>
						</ul>
						<div class="layui-tab-content">
							<!--无知识库提示词-->
							<div class="layui-tab-item layui-show">
								<span>你的任务是做一名问答助手，回答【问题】。在回答问题时，你需要注意以下几点：</span>
								<textarea placeholder="请输入内容" class="layui-textarea" id="noPromptSet" maxlength="500" style="min-height:100px;"></textarea>
								<span>【问题】</span><br>
								<span>{question}</span><br><br>
								<span>【回答】</span>
							</div>
							<!--知识库提示词-->
							<div class="layui-tab-item">
								<span>你的任务是做一名问答助手，根据【检索结果】来回答最后的【问题】。在回答问题时，你需要注意以下几点：</span><br>
								<span>1.【检索结果】有多条，每条【检索结果】之间由-分隔。</span><br>
								<span>2.如果某条【检索结果】与【问题】无关，就不要参考这条【检索结果】。</span><br>
								<span>3.请直接回答问题，不要强调客服的职责。此外，避免出现无关话术，如"根据【检索结果】..."等。</span><br>
								<textarea placeholder="请输入内容" class="layui-textarea" id="withPromptSet" maxlength="500" style="min-height:100px;"></textarea>
								<span>【检索结果】</span><br>
								<span>{information}</span><br><br>
								<span>【问题】</span><br>
								<span>{question}</span><br><br>
								<span>【回答】</span>
							</div>
						</div>
					</div>

				</div>
			</div>
		</div>


		<div class="layui-collapse collapse-set">
			<div class="layui-colla-item">
				<div class="layui-colla-title">重要配置</div>
				<div class="layui-colla-content layui-show">
					<div class="layui-form-item">
						<div class="layui-row" style="margin-bottom: 20px;">
							<div class="layui-col-xs7">
								<span style="line-height: 30px;">是否限制用户每天对话次数<i class="layui-icon layui-icon-question tipIron" id="isOpenUserTimes"></i>：</span>
							</div>
							<div class="layui-col-xs4" id="isLimitTimesSetView">
								<input type="checkbox" name="isLimitTimesSet" id="isLimitTimesSet" lay-skin="switch" lay-filter="switchIsLimitTimesSet" title="开|关">
							</div>
						</div>
					</div>
					<div class="layui-form-item" id="userChatTimesView">
						<label class="layui-form-label" title="次数限制">次数限制</label>
						<div class="layui-input-block">
							<input type="number" name="userChatTimesSet" id="userChatTimesSet" maxlength="10" lay-verify="required" autocomplete="off" class="layui-input input-buttom" value="" >
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label" title="提问字数限制">提问字数限制<i class="layui-icon layui-icon-question tipIron" id="InputMaxTip"></i></label>
						<div class="layui-input-block">
							<input type="number" name="inputMaxSet" id="inputMaxSet" maxlength="4" lay-verify="required" autocomplete="off" class="layui-input input-buttom" value="" >
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-row" style="margin-bottom: 20px;">
							<div class="layui-col-xs7">
								<span style="line-height: 30px;">开启聊天是否默认新会话<i class="layui-icon layui-icon-question tipIron" id="OpenIsNewChatTip"></i>：</span>
							</div>
							<div class="layui-col-xs4" id="openIsNewChatSetView">
								<input type="checkbox" name="openIsNewChatSet" id="openIsNewChatSet" lay-skin="switch" lay-filter="switchOpenIsNewChatSet" title="开|关">
							</div>
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-row" style="margin-bottom: 20px;">
							<div class="layui-col-xs7">
								<span style="line-height: 30px;">是否显示选择提示词模版<i class="layui-icon layui-icon-question tipIron" id="QuestionTemplateIsOpenTip"></i>：</span>
							</div>
							<div class="layui-col-xs4" id="questionTemplateIsOpenSetView">
								<input type="checkbox" name="questionTemplateIsOpenSet" id="questionTemplateIsOpenSet" lay-skin="switch" lay-filter="switchQuestionTemplateIsOpenSet" title="开|关">
							</div>
						</div>
					</div>
					<div class="layui-form-item" id="questionTemplateView">
						<label class="layui-form-label" title="提示词模版文案">提示词模版文案<i class="layui-icon layui-icon-question tipIron" id="questionTemplateTxtTip"></i></label>
						<div class="layui-input-block">
							<input type="text" name="questionTemplateTxtSet" id="questionTemplateTxtSet" maxlength="10"  class="layui-input input-buttom" >
						</div>
					</div>
				</div>
			</div>
		</div>




	</form>

	<!--
	<div class="bottom-view">
		<div class="layui-btn-container add-btn-view">
			<button type="button" class="layui-btn layui-bg-blue add-btn" onclick="saveToTest();">预览配置</button><i class="layui-icon layui-icon-question tipIron" id="saveBtnTip"></i>
		</div>
	</div>
-->


</div>
